<?php echo $this->Session->flash(); ?>
<?php
echo $form->create('User');
echo $form->hidden("User.id");
echo $form->input("User.nombre", array('label' => 'Nombres', 'id' => 'usr'));
echo $form->input("User.primer_apellido", array('label' => 'Primer Apellido', 'id' => 'usr'));
echo $form->input("User.segundo_apellido", array('label' => 'Segundo Apellido', 'id' => 'usr'));
echo $form->input("User.email", array('label' => 'Correo electrónico', 'id' => 'usr'));
echo $form->input("User.username", array('label' => 'Nombre De Usuario', 'id' => 'usr'));
echo $form->input("User.group_id", array('label' => 'Grupo',));
echo $form->input("User.branch_id", array('label' => 'Regional'));
?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<?php
echo $ajax->submit('Submit', array('url' => array('controller' => 'Users', 'action' => 'edit'), 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'));
echo $form->end();
?>


